<?php $this->headStyle()->captureStart()?>
    #content td { padding:5px}
    #content table { border:1px #aaa solid; padding:5px; width:100%}
    #content th {font-weight:bold;}
    #content .page a {padding:2px;}
    #content table a {cursor:pointer;}
<?php $this->headStyle()->captureEnd()?>
<?php
    if (!isset($_GET['search'])) {$_GET['search'] = '';}
    $get = $_GET; unset($get['page']);
    $pagination = $this->pagination($this->listing_number, $this->page, $this->per_page, 4, $this->geturl('list', 'keyword', null, 'admin1', $get));
?>
<form method="get" name="user_form">
	<a href="<?php echo $this->geturl('add','keyword', null, 'admin1');?>">Add</a>
</form>
<table border="1">
	<tr>
        <th>
            Key Words
        </th>
        <th>
        </th>
   </tr>
   <?php if(count($this->keywords) > 0):?>
   <?php foreach ($this->keywords as $key=>$keyword):?>
   <tr>
   		<td>
   			<?php echo $keyword;?>
   		</td>
   		<td>
   			<a href="<?php echo $this->geturl('remove','keyword', null, 'admin1', array('id'=>$keyword));?>">Remove</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
   			<a href="<?php echo $this->geturl('edit','keyword', null, 'admin1', array('id'=>$key));?>">Edit</a>
   		</td>
   </tr>
   <?php endforeach;?>
   <?php else:?>
   <tr>
   		<td colspan='2'>No keyword is defined</td>
   </tr>
   <?php endif;?>
</table>
<?php echo $pagination;?>